package IMIC.NGUYENVANTINH.OOP.LEVEL2.EX6;

public class Controllers {
	private static Models objmodels;

	public Controllers() {
		objmodels = new Models();
	}

	public boolean checkisEven(MyInteger myinteger) {
		if (objmodels.isEven(myinteger)) {
			return true;
		} else
			return false;
	}

	public boolean checkisOdd(MyInteger myinteger) {
		if (objmodels.isOdd(myinteger)) {
			return true;
		} else
			return false;
	}

	public boolean checkisPrime(MyInteger myinteger) {
		if (objmodels.isPrime(myinteger)) {
			return true;
		} else
			return false;
	}

	public static boolean checkisEven(int a) {
		if (objmodels.isEven(a)) {
			return true;
		} else
			return false;
	}

	public static boolean checkisOdd(int a) {
		if (objmodels.isOdd(a)) {
			return true;
		} else
			return false;
	}

	public static boolean checkisPrime(int a) {
		if (objmodels.isPrime(a)) {
			return true;
		} else
			return false;
	}

	public boolean equals(MyInteger myinteger, int a) {
		return objmodels.equals(myinteger, a);
	}
}
